-- GENERATED SPELL FOR [Frostwolf Guardian] --


function spell0_12053(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(19130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12053', 0, 1)
end

function spell1_12053(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_12053', 5305, 1)
end

function Sorts_12053(pUnit, Event)
local choix_sorts_12053 = math.random(0, 1)
if choix_sorts_12053 == 0 then
pUnit:RegisterEvent('spell0_12053', 1, 1)
end
if choix_sorts_12053 == 1 then
pUnit:RegisterEvent('spell1_12053', 1, 1)
end
end

function mob12053_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12053', math.random(1500, 3000), 1)
end

function mob12053_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12053_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12053_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12053, 1, 'mob12053_Action')
RegisterUnitEvent(12053, 2, 'mob12053_Leave')
RegisterUnitEvent(12053, 3, 'mob12053_Kill')
RegisterUnitEvent(12053, 4, 'mob12053_Die')
